import { Component, OnInit } from '@angular/core';
import { SPage } from '@shared/components/table-page/table-page.component';
import { ApiService } from '@core/services/api';

@Component({
  selector: 'app-operate-log',
  templateUrl: './operate-log.component.html',
  styles: []
})
export class OperateLogComponent implements OnInit {
  config: SPage = {
    columns: [
      {
        title: '操作用户',
        index: 'opUserName',
      },
      {
        title: '操作内容',
        index: 'reqUrlName'
      },
      {
        title: '操作时间',
        index: 'reqTime'
      }
    ],
    defaultParam: {
      order: 'reqTime desc'
    },
    reqUrl: this.api.Log.operateLog.url
  }
  constructor(
    private api: ApiService
  ) { }

  ngOnInit() {
  }

}
